const getDateTime = function (time) {
    let nowTime = new Date(time)
    let year = nowTime.getFullYear()
    let month = nowTime.getMonth() + 1
    let date = nowTime.getDate()
    if (month < 10) {
        month = '0' + month
    }
    if (date < 10) {
        date = '0' + date
    }
    let str = year + '-' + month + '-' + date
    return str
  }
  module.exports = getDateTime